<?php
/*
 * Theme Name: Larch Theme
 * Author: R.Dan and Co.
 * 
 * Options
 * 
 * Titan Framework should be enabled
 */
$logo = '';
$use_banner = true;
if(  class_exists( 'TitanFramework')):
$theme_options = TitanFramework::getInstance( 'larch');
$use_banner = $theme_options->getOption( 'header_banner');
$logo = $theme_options->getOption( 'header_logo' );
endif;
?>

<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	
	<title><?php wp_title( '|', true, 'right' ); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<!--[if lt IE 9]>
	<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
	<![endif]-->
	<?php wp_head();
	?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
	<div class="container-fluid" role="wrapper">
		<header class = "site-header row">
			<aside class="header-options col-md-12">
				<?php get_search_form(); ?>
			</aside>
			<div class="container-fluid navigation">
				<a href ="<?php bloginfo('url'); ?>" title ="Go home"><img src = "<?php echo $logo; ?>" alt ="site-logo" class="site-logo" /></a>
				<div class="site-navigation">
					<?php wp_nav_menu(array(
						'theme_location'=>'primary',
					)); ?>
				</div>
			</div>
		</header>
		<aside class ="site-banner row" role="banner">
			<?php 
				if($use_banner=='Slider'):
					dynamic_sidebar('Slider');
				endif;
			?>
		</aside>
		<div id="main" class="site-main">
			<div class="container-fluid">
